package com.fjec.market.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fjec.market.entity.BizShoppingCart;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 016.购物车表 Mapper 接口
 * </p>
 *
 * @author admin
 * @since 2020-09-17
 */
public interface BizShoppingCartMapper extends BaseMapper<BizShoppingCart> {

    /**
     * 根据用户Id查询购物车新信息
     *
     * @param userId
     * @return
     */
    List<Map<String, Object>> selectListByUserId(@Param("userId") Long userId);

    /**
     * 根据购物车Id查询商品及购物车信息
     *
     * @param skuIdList
     * @return
     */
//    List<Map<String, Object>> getShoppingCartByIdList(@Param("skuIdList") List<Long> skuIdList);
}
